<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<script language="javascript" src="<%=basePath %>/script/jquery1.3.2.js"
			type="text/javascript"></script>
		<script language="javascript" src="<%=basePath %>/script/jquery.provincesCity.js"
			type="text/javascript"></script>
		<script language="javascript" src="<%=basePath %>/script/provincesdata.js"
			type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
			$(function(){
				$("#hometown").ProvinceCity();
				$("#sopt0 option[text='"+$("#opt0").val()+"']").trigger("change");
				$("#sopt1 option[text='"+$("#opt1").val()+"']").attr("selected", true);
				$("#sopt2 option[text='"+$("#opt2").val()+"']").attr("selected", true);
			});
		</script>
	</head>
	<body>
		<div class="generalbox overview_block">
			<div
				class="generalbox_header overview_veryunevenlargecolumn_width generalbox_header_heavy">
				<div class="box_leftheader generalbox_leftheader">
					<img class="inlineicon transparentpng" height="16" alt=""
						src="<%=basePath%>/images/document.png" width="16" />
					Account
				</div>
				<div class="clearer"></div>
			</div>
			<div
				class="generalbox_body generalbox_background_white overview_veryunevenlargecolumn_width">
				<div class="singlecontent_block">
					<form action="<%=basePath %>/user/infomodify" method="post">
						<input type="hidden" name="user.id" value="${user.id }"/>
						<input type="hidden" name="user.userDetail.id" value="${user.userDetail.id }"/>
						<table class="BodyText" cellspacing="2" cellpadding="2"
							width="100%" border="0" valign="top">
							<tbody>
								<tr class="row_even">
									<td width="35%">
										登录用电子邮件:
									</td>
									<td colspan="2">
										${user.email }&nbsp;&nbsp;
										<a
											href="http://www.hyves.nl/profilemanage/settings/inloggegevens/">更改</a>
									</td>
									<td></td>
								</tr>
								<tr class="row_odd">
									<td>
										昵称:
									</td>
									<td colspan="3">
										<input size="25" name="user.nick" value="${user.nick }" />
									</td>
								</tr>
								<tr class="row_even">
									<td>
										姓名:
									</td>
									<td colspan="2">
										<input size="25" name="user.userDetail.realname"
											value="${user.userDetail.realname }" />
									</td>
								</tr>
								<tr class="row_odd">
									<td valign="top">
										<s:radio list="#{'1':'男','0':'女'}" name="user.userDetail.sex" label="性别"/>
									</td>
								</tr>
								<tr class="row_even">
									<td>
										家乡:
									</td>
									<td colspan="2">
										<input type="hidden" id="opt0" value="${opt[0] }">
										<input type="hidden" id="opt1" value="${opt[1] }">
										<input type="hidden" id="opt2" value="${opt[2] }">
										<div id="hometown"></div>
									</td>
								</tr>
								<tr class="row_odd">
									<td class="Bodytext">
										生日:
									</td>
									<td>
										<input type="text" name="user.userDetail.birthday"
											onfocus="WdatePicker()" class="Wdate" readonly="true"
											value="${user.userDetail.birthday }" />
									</td>
									<td colspan="2"></td>
								</tr>
								<tr class="row_even">
									<td style="PADDING-BOTTOM: 8px" colspan="4">
										<table cellspacing="0" cellpadding="0">
											<tbody>
												<tr>
													<td style="PADDING-BOTTOM: 10px" colspan="5">
														<b>Help Hyves</b>: By receiving offers from partners you help us
														develop new features and keep the site fast! Examples of
														offers are reductions at stores and free tickets.
														<br />
														Of course these messages are according to the Hyves
														philosophy: we send them only with your permission and you
														can always unsubscribe for them.
													</td>
												</tr>
												<tr>
													<td valign="top" width="30">
														<input type="checkbox" checked="checked" value="1"
															name="settings_receiveemailgoof" />
													</td>
													<td>
														Email (max. 1-2x per month)
													</td>
													<td valign="top" width="30">
														<input type="checkbox" value="1"
															name="settings_receivesmsgoof" />
													</td>
													<td>
														SMS (max. 1-2x per month)
													</td>
													<td width="30%">
														&nbsp;
													</td>
												</tr>
											</tbody>
										</table>
									</td>
								</tr>
								<tr>
									<td style="PADDING-RIGHT: 20px" valign="top" align="right"
										colspan="4">
										<input type="submit" class="SubmitBold" value="更改"/>
									</td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>
